package com.wsjc.manager.service.routine.user.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.google.common.collect.Maps;
import com.wsjc.manager.dao.user.WjUserDao;
import com.wsjc.manager.entity.WjUser;
import com.wsjc.manager.service.routine.user.WjUserService;

@Service("wjUserService")
public class WjUserServiceImpl implements WjUserService{

	
	@Autowired
	private WjUserDao wjUserDaoImpl ;
	
	
	@Override
	public List<WjUser> queryUsersByScope(String areaId) {
		
		Map<String, Object> paramMap = Maps.newHashMap();
		String scopeLike = areaId.substring(0, 2);
		paramMap.put("scopeLike", scopeLike);
		return wjUserDaoImpl.listBy(paramMap);
	}


	@Override
	public WjUser queryUserBy(Map<String, Object> paramMap) {
		return wjUserDaoImpl.getBy(paramMap);
	}

}
